package com.hunan.api.catv.action.account;

import com.hunan.api.catv.action.BaseAction;
import com.hunan.api.catv.common.Api;
import com.hunan.api.catv.entity.Result;
import com.hunan.api.catv.entity.po.MemberWithdrawRecord;
import com.hunan.api.catv.service.biz.account.AccountWithdrawBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wangchao
 * @Date: 2020/10/28 9:29
 */
@RestController
@Validated
@RequestMapping(Api.member_withdraw)
public class AccountWithdrawAction extends BaseAction {

    @Autowired
    AccountWithdrawBiz accountWithdrawBiz;

    /**
     * 保存用户提现成功记录
     */
    @PostMapping("/saveMemberWithdrawInfo")
    public Result saveMemberWithdrawInfo(@RequestBody MemberWithdrawRecord memberWithdrawRecord) {
        return buildOK(accountWithdrawBiz.saveMemberWithdrawInfo(memberWithdrawRecord), "");
    }
}
